<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>{{=response.title}}</title>
    {{response.files.append(URL(r=request,c='static',f='echo/styles.css'))}}
    {{response.files.append(URL(r=request,c='static',f='superfish.css'))}}
    {{response.files.append(URL(r=request,c='static',f='superfish.js'))}}
    {{include 'web2py_ajax.html'}}
  </head>
  <body>
    <div id="wrap">
      <div id="container">
	{{=auth.navbar('Welcome',URL(r=request,c='default',f='user'))}}
	<div id="header">
	  {{=plugin_wiki.embed_page('meta-header') or XML('<h1>%s</h1><h2>%s</h2>' % (response.title, response.subtitle))}}
	</div>
	<div id="nav">
	  {{=MENU(response.menu,_class='sf-menu')}}
	  <script>jQuery(document).ready(function(){jQuery('ul.sf-menu').superfish();});</script>
	  <br class="clear" />
	</div>
	<div id="content">
	  <div class="top-panel">
	    <div class="flash">{{=response.flash}}</div>
	  </div>
	  <div class="page-wrap">
	    <div class="page">
	      {{include}}
	    </div>
	    {{if request.controller!='plugin_wiki' or request.function=='page':}}
	    <div class="sidebar">
	      {{=plugin_wiki.embed_page('meta-sidebar') or ''}}
	    </div>
	    {{pass}}
	    <div class="clear"></div>
	  </div>
	</div>
	<div id="footer">
	  {{=plugin_wiki.embed_page('meta-footer') or XML('<p>&copy; 2010. Design inspired by <a href="http://www.spyka.net">spyka</a>@<a href="http://www.justfreetemplates.com">FreeWebTemplates</a> - Powered by <a href="http://web2py.com">web2py</a> - <a href="%s">documentation (pdf)</a></p>' % URL(r=request,c='static',f='cube2py.pdf'))}}
	</div>
      </div>
    </div>    
  </body>
</html>
`
